const common = {
    //加载中
    load: {
        //显示加载中
        show() {
            const div = document.createElement("div");
            div.className = "vir-wrap";
            div.innerHTML = `
                <div id="loadding" class="spinner-border" role="status">
                    <span class="visually-hidden">Loading...</span>
                </div>
            `;
            //找到body元素中第一个子元素
            const firstBoy = document.body.children[0];
            document.body.insertBefore(div,firstBoy);
        },
        hidden(){
            document.querySelector(".vir-wrap").remove();
        },
    }
    //可以拓展其他公共的代码
};